package cn.datawin.bms.modules.customer.service;

import cn.datawin.bms.customer.entity.CstmCustomerProviderChannelEntity;
import cn.datawin.bms.customer.vo.CstmCustomerProviderChannelVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.ArrayList;
import java.util.List;

public interface CstmCustomerProviderChannelService extends IService<CstmCustomerProviderChannelEntity> {

    List<CstmCustomerProviderChannelEntity> getProviderChannels(Long customerId);

	boolean bindProviderChannel(List<CstmCustomerProviderChannelEntity> channelList);

	Page<CstmCustomerProviderChannelVo> customPage(Page<CstmCustomerProviderChannelVo> page, CstmCustomerProviderChannelEntity cstmCustomerProviderChannel);

	boolean saveChannel(CstmCustomerProviderChannelEntity entity);

	boolean updateChannel(CstmCustomerProviderChannelEntity cstmCustomerProviderChannel);

	boolean removeChannel(ArrayList<Long> toList);
}
